package club.janna.springboot.study.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface JannaLimiter {
    // 每秒钟产生的令牌数
    double value();
    // 允许等待的时间
    long timeout() default 50;
    // 拒绝的信息
    String msg() default "System busy, please request after again!";
}
